package mpcs.controller
{
	import mpcs.model.HistoryProxy;
	import mpcs.model.LoginProxy;
	import mpcs.model.RegProxy;
	import mpcs.model.UserInfoProxy;
	import mpcs.model.vo.UserVO;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	/**
	 *  
	 * @author zhangzuoqiang
	 */
	public class PrepModelCommand extends SimpleCommand {
		
		override public function execute( note:INotification ) : void {
			
			// 在此注册系统所有的Proxy ===================================================
			// Create User Proxy, and register later
			var loginProxy:LoginProxy = new LoginProxy();
			facade.registerProxy( loginProxy );			
			
			var regProxy:RegProxy = new RegProxy();
			facade.registerProxy( regProxy );
			
			var userinfoProxy:UserInfoProxy = new UserInfoProxy();
			facade.registerProxy( userinfoProxy );
			
			var historyProxy:HistoryProxy = new HistoryProxy();
			facade.registerProxy( historyProxy );
			
			
			
		}
	}
}